export interface ItemType {
  id: number, //唯一标识一条数据index
  [propName: string]: any // [ propName : string ] : any,  // 任意类型
}

export interface FilterOption{
  [propName: string]: any
}

export interface FilterFuncType {
  (filter: FilterOption): any
}

export interface FetchFuncType {
  (): any
}

export interface DeleteFuncType {
  (item: ItemType) : any
}

export interface AddFuncType {
  (item: ItemType) : any
}

export interface EditFuncType {
  (item: ItemType) : any
}


export enum EStatusType {
  FREE_TYPE,
  ADD_TYPE,
  EDIT_TYPE,
}

